//
//  SYFenPeiJiangLiView.m
//  SanYiTeaching
//
//  Created by 郑浩然 on 2019/5/9.
//  Copyright © 2019年 SanYi. All rights reserved.
//

#import "SYFenPeiJiangLiView.h"


@interface SYFenPeiJiangLiView ()
@property (strong, nonatomic) SYBackTopView *backView;//顶部viwe
@end


@implementation SYFenPeiJiangLiView


- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor colorWithHexString:@"#EEEEEE"];
        [self initSubView];
    }
    return self;
}
- (void)initSubView {
    [self addSubview:self.backView];
    [self.backView mas_remakeConstraints:^(MASConstraintMaker *make) {
        make.top.left.right.equalTo(self);
        make.height.mas_equalTo(50);
    }];
    
}





#pragma mark - set
//头部
- (SYBackTopView *)backView {
    if (!_backView) {
        _backView = [[SYBackTopView alloc] initWithTitleName:@"创建小组" baseView:self];
    }
    return _backView;
}

@end
